<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../left.html">
         <!-- sidebar end -->
         <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>: 销售统计 - 库存预警</div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form class="ropt">
                            <input type="radio" name="status" <#if status>checked="checked"</#if> value="1" />提醒
                            <input type="radio" name="status" <#if !status>checked="checked"</#if> value="0" />不提醒
                            库存预警值:<input type="text"  name="count" value="${count!}" />
                            <input type="submit" value="查找" onclick="this.form.action='productLack.do';"/>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form id="tableForm" method="post">
                            <input type="hidden" name="pageNo" value="${pageNo!}"/>
                            <input type="hidden" name="ctgId" value="${ctgId!}"/>
                            <input type="hidden" name="count" value="${count!}"/>
                            <input type="hidden" name="status" value="${status?string('true','false')}"/>
                            <@p.table listAction="productLack.do" value=pagination;product,i,has_next>
                                <@p.column code="product.name">${product.name!}</@p.column><#t/>
                                 <@p.column code="product.category">${product.category.name!}</@p.column><#t/>
                                 <@p.column code="product.type">${product.type.name!}</@p.column><#t/>
                                 <@p.column code="销售量">${product.saleCount!}</@p.column><#t/>
                                 <@p.column code="库存">${product.stockCount!}</@p.column><#t/>
                                 <@p.column code="global.operate" align="center">
                                    <#if product.lackRemind>
                                        <a href="o_updateRemind.do?productId=${product.id!}&status=false">不再提醒</a>
                                        <#else>
                                            <a href="o_updateRemind.do?productId=${product.id!}&status=true">提醒</a>
                                    </#if>
                              </@p.column><#t/>
                           </@p.table>
                      </form>
</div>
</div>
<#include "/common/alert_message.html"/>
            <!-- content end-->
    </div>
</body>
</html>

